package com.hulman.oms.dao;

import com.hulman.oms.bean.Area;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: maxwellens
 */
@Mapper
public interface AreaDao
{
    List<Area> findAreas(Map<String, Object> map);

    Integer findAreasCount(Map<String, Object> map);

    Area findAreaById(Integer id);

    int insertArea(Area area);

    void deleteAreaById(Integer id);

    void deleteAreas(int[] ids);

    int updateArea(Area area);
}
